{% extends "admin/base.html" %}
{% block body %}

<div class="container">
    <div class="row">
        <div class="col-md-9 col-sm-9 col-xs-9">
            <h2>参加{{ event.name }}的小组</h2>
        </div>
        <div class="col-md-3 col-sm-3 col-xs-3">
            <h2 style="float:right"><button class="btn btn-default" onclick="javascript:history.back(-1);">返回</button></h2>
        </div>
    </div>
    <table class="table table-bordered table-hover">
        <thead>
        <tr>
            <th>小组编号</th>
            <th>小组名称</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
            {% if not event.users.all() %}
                <tr><td colspan="4" style="text-align:center">无</td></tr>
            {% endif %}
            {% for e in event.users.all() %}
                <tr id="{{ e.id }}">
                    <td>{{ e.id }}</td>
                    <td>{{ e.name }}</td>
                    <td>{{ e.create_date }}</td>
                    <td><a href="" class="btn btn-sm btn-primary">查看结果</a>&emsp;<a href="" class="btn btn-sm btn-danger">删除</a></td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>

{% endblock %}